import axios from '@/utils/api'
import { reactive } from "vue";
import { useUserInfoStore } from '@/store/modules/user_info/index';
const user_infoStore = useUserInfoStore();
const user_info = reactive(user_infoStore.userInfo)
export const createRole = (param,game_id)=>{
    const data = {
        user_id: user_info.id,
        game_id,
        role_id: param.Roleid,
        server_id: param.Serverid,
        media_type: 2,
        role_name: param.RoleName,
        server_name: param.ServerName,
        role_level: param.level,
    }
    const res = axios.get('/userCreateRole',{params: data})
    return res
}